#ifndef TOOLCATEGORY_H
#define TOOLCATEGORY_H

#include <QObject>

class Tool;

typedef QList<QPointer<Tool> > Tools;

class ToolCategory : public QObject
{
    Q_OBJECT
public:
    explicit ToolCategory(const QString& name, const QString& iconPath, QObject *parent = 0);

    const QString& name() const;
    const QIcon& icon() const;

    bool addTool(QPointer<Tool> tool);
    const Tools& tools() const;
private:
    void loadIcon(const QString& iconPath);
    QString m_name;
    QIcon m_icon;

    Tools m_tools;
signals:
    
public slots:
    
};

#endif // TOOLCATEGORY_H
